<%--
  Created by IntelliJ IDEA.
  User: 易亚丽
  Date: 2021/10/16
  Time: 14:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>旅客注册</title>
    <style>

        .cont{
            margin: 50px auto;
        }

        * {
            margin: 0px;
            padding: 0px;
            box-sizing: border-box;
        }

        body {
            background: url("../img1/register_bg.png") no-repeat center;
            padding-top: 25px;
        }

        .rg_layout {
            width: 900px;
            height: 500px;
            border-radius:4px;
            background:url("../img1/bg.jpg");
            /*让div水平居中*/
            margin: auto;
        }

        .rg_left {
            /*border: 1px solid red;*/
            float: left;
            margin-left: 25px;
            margin-top: 25px;
        }

        .rg_left > p:first-child {
            color: #FFD026;
            font-size: 20px;
        }

        .rg_left > p:last-child {
            color: #A6A6A6;
            font-size: 20px;

        }

        .rg_center {
            float: left;
            margin-top: 30px;
            /* border: 1px solid red;*/

        }

        .rg_right {
            /*border: 1px solid red;*/
            float: right;
            margin: 15px;
        }

        .rg_right > p:first-child {
            font-size: 15px;

        }

        .rg_right p a {
            color: pink;
        }

        .td_left {
            width: 100px;
            text-align: right;
            height: 45px;
        }

        .td_right {
            padding-left: 50px;
        }

        #username, #password, #email, #name, #user, #pas,#tel {
            width: 251px;
            height: 32px;
            border: 1px solid #A6A6A6;
            /*设置边框圆角*/
            border-radius: 5px;
            padding-left: 10px;
        }

        #checkcode {
            width: 110px;
        }

        #img_check {
            height: 32px;
            vertical-align: middle;
        }

        #btn_sub {
            width: 150px;
            height: 40px;
            border-radius: 4px;
            margin-top: 10px;
            background-color: #FFD026;
            border: 1px solid #FFD026;
        }

        #td_sub{
            padding-left: 150px;
        }

        .error{
            color:red;
            vertical-align: middle;
            font-size: 1px;
        }
    </style>
</head>

<body>

<div class="rg_layout">
    <!--    页面左部分-->
    <div class="rg_left">
        <p>新用户注册</p>
        <p>USER REGISTER</p>

    </div>
    <!--页面中间部分-->
    <div class="rg_center">
        <div class="rg_form ">
            <!--定义表单 form-->
            <form action="http://localhost:8080/hostel_war_exploded/zhuce" method="post">
            <table>
                <!--                    用户名-->
                <tr>
                    <td class="td_left"><label for="username">姓名</label></td>
                    <td class="td_right">
                        <input type="text" name="name" id="username" placeholder="请输入姓名">
                        <span id="s_username" class="error"></span>
                    </td>

                </tr>
                <!--                    密码-->

                <tr>
                    <td class="td_left"><label for="password">身份证号</label></td>
                    <td class="td_right">
                        <input type="password" name="card" id="password" placeholder="请输入身份证号">
                        <span id="s_password" class="error"></span>
                    </td>
                </tr>
                <!--email-->
                <tr>
                    <td class="td_left"><label for="email">座机</label></td>
                    <td class="td_right">
                        <input type="text" name="phone" id="email" placeholder="请输入座机">
                        <span id="s_email" class="error"></span>
                    </td>
                </tr>
                <!--姓名-->
                <tr>
                    <td class="td_left"><label for="name">移动电话</label></td>
                    <td class="td_right"><input type="text" name="mobile" id="name" placeholder="请输入移动电话"></td>
                </tr>
                <!--手机号-->
                <tr>
                    <td class="td_left"><label for="tel">会员卡余额</label></td>
                    <td class="td_right">
                        <input type="text" name="remainder" id="tel" placeholder="请输入会员卡余额">
                        <span id="s_tel" class="error"></span>
                    </td>
                </tr>
                <!--性别-->
                <tr>
                    <td class="td_left"><label>用户名</label></td>
                    <td class="td_right">
                        <input type="text" name="username" id="user" placeholder="请输入用户名">
                        <span id="s_tel" class="error"></span>


                    </td>
                </tr>
                <!--出生日期-->

                <tr>
                    <td class="td_left"><label>用户名</label></td>
                    <td class="td_right">
                        <input type="text" name="password" id="pas" placeholder="请输入密码">
                        <span id="s_tel" class="error"></span>


                    </td>
                </tr>
                <!--验证码-->


                <!--注册按钮-->
                <tr>
                    <td colspan="2"  id="td_sub"><input type="submit" id="btn_sub" value="注册"></td>
                </tr>
            </table>

            </form>




        </div>
    </div>
    <!--页面右部分-->
    <div class="rg_right">
        <p>已有账号?<a href="${pageContext.request.contextPath}/login.jsp">立即登录</a></p>
    </div>
</div>

</body>
</html>
